package com.etime.shycourse.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * id=-1本公司；信息固化进入数据库
 * </p>
 *
 * @author wb
 * @since 2021-12-14
 */
@ApiModel(value = "Organization对象", description = "组织")
@TableName("organization")
public class Organization implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "orgid", type = IdType.AUTO)
    private Integer orgid;

    private String orgname;

    private String orgnumber;

    private String orgdesc;

    private String orglicensepic;

    private String orgaddr;

    private String orgphone;

    private String orgcontacts;

    private String orgbankname;

    private String orgbanknum;

    @ApiModelProperty(value = "0：未审核；1：通过；2：未通过")
    private Integer orgauditstate;

    private String orgauditopinion;
    // 机构简称
    private String field1;

    private String field2;

    private String field3;

    private Integer orguserid;

    private String orgemail;

    @ApiModelProperty(value = "-1：表示使用统一的提成比例")
    private BigDecimal orgtakepoint;


    public Integer getOrgid() {
        return orgid;
    }

    public void setOrgid(Integer orgid) {
        this.orgid = orgid;
    }

    public String getOrgname() {
        return orgname;
    }

    public void setOrgname(String orgname) {
        this.orgname = orgname;
    }

    public String getOrgnumber() {
        return orgnumber;
    }

    public void setOrgnumber(String orgnumber) {
        this.orgnumber = orgnumber;
    }

    public String getOrgdesc() {
        return orgdesc;
    }

    public void setOrgdesc(String orgdesc) {
        this.orgdesc = orgdesc;
    }

    public String getOrglicensepic() {
        return orglicensepic;
    }

    public void setOrglicensepic(String orglicensepic) {
        this.orglicensepic = orglicensepic;
    }

    public String getOrgaddr() {
        return orgaddr;
    }

    public void setOrgaddr(String orgaddr) {
        this.orgaddr = orgaddr;
    }

    public String getOrgphone() {
        return orgphone;
    }

    public void setOrgphone(String orgphone) {
        this.orgphone = orgphone;
    }

    public String getOrgcontacts() {
        return orgcontacts;
    }

    public void setOrgcontacts(String orgcontacts) {
        this.orgcontacts = orgcontacts;
    }

    public String getOrgbankname() {
        return orgbankname;
    }

    public void setOrgbankname(String orgbankname) {
        this.orgbankname = orgbankname;
    }

    public String getOrgbanknum() {
        return orgbanknum;
    }

    public void setOrgbanknum(String orgbanknum) {
        this.orgbanknum = orgbanknum;
    }

    public Integer getOrgauditstate() {
        return orgauditstate;
    }

    public void setOrgauditstate(Integer orgauditstate) {
        this.orgauditstate = orgauditstate;
    }

    public String getOrgauditopinion() {
        return orgauditopinion;
    }

    public void setOrgauditopinion(String orgauditopinion) {
        this.orgauditopinion = orgauditopinion;
    }

    public String getField1() {
        return field1;
    }

    public void setField1(String field1) {
        this.field1 = field1;
    }

    public String getField2() {
        return field2;
    }

    public void setField2(String field2) {
        this.field2 = field2;
    }

    public String getField3() {
        return field3;
    }

    public void setField3(String field3) {
        this.field3 = field3;
    }

    public Integer getOrguserid() {
        return orguserid;
    }

    public void setOrguserid(Integer orguserid) {
        this.orguserid = orguserid;
    }

    public String getOrgemail() {
        return orgemail;
    }

    public void setOrgemail(String orgemail) {
        this.orgemail = orgemail;
    }

    public BigDecimal getOrgtakepoint() {
        return orgtakepoint;
    }

    public void setOrgtakepoint(BigDecimal orgtakepoint) {
        this.orgtakepoint = orgtakepoint;
    }

    @Override
    public String toString() {
        return "Organization{" +
                "orgid=" + orgid +
                ", orgname=" + orgname +
                ", orgnumber=" + orgnumber +
                ", orgdesc=" + orgdesc +
                ", orglicensepic=" + orglicensepic +
                ", orgaddr=" + orgaddr +
                ", orgphone=" + orgphone +
                ", orgcontacts=" + orgcontacts +
                ", orgbankname=" + orgbankname +
                ", orgbanknum=" + orgbanknum +
                ", orgauditstate=" + orgauditstate +
                ", orgauditopinion=" + orgauditopinion +
                ", field1=" + field1 +
                ", field2=" + field2 +
                ", field3=" + field3 +
                ", orguserid=" + orguserid +
                ", orgemail=" + orgemail +
                ", orgtakepoint=" + orgtakepoint +
                "}";
    }
}
